package com.htthorizon.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 用户对应模型的操作权限对象 sys_user_model
 *
 * @author mark
 * @date 2023-11-16
 */
@Valid
public class SysUserModel
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    /** 模型ID */
    @NotNull(message = "模型ID不能为空")
    private Long modelId;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("modelId", getModelId())
                .toString();
    }
}
